<?php
//
defined('BY_JYA') or exit('error');
$_RQ['op']=$_RQ['op']?$_RQ['op']:'list';
model('jy_weishop/member')->checklogin();
if($_RQ['op']=='list'){
	set_html('title','服务号列表');
	exi($return);
}
if($_RQ['op']=='detail'){
	$id=intval($_RQ['id']);
	if(!$id){
		$order=pdo_get('jy_shopbaoxiu_order',array('uniacid'=>$_SESSION['uniacid'],'mid'=>$_SESSION['uid']),'','id desc');
		$id=$order['id'];
	}
	$return['item']=pdo_get('jy_shopbaoxiu_order',array('uniacid'=>$_SESSION['uniacid'],'id'=>$id));
	$return['item']['number']=substr($return['item']['selfnumber'],-6);
	set_html('title','服务号详情');
	exi($return);
}
if($_RQ['op']=='get'){
	set_html('title','取号');
	exi($return);
}	
?>